package com.hegongda.okcmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hegongda.common.utils.PageUtils;
import com.hegongda.okcmall.product.entity.AttrAttrgroupRelationEntity;
import com.hegongda.okcmall.product.entity.AttrEntity;
import com.hegongda.okcmall.product.entity.AttrGroupEntity;
import com.hegongda.okcmall.product.vo.AttrGroupWithAttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author Liuweidong
 * @email Liuweidong@gmail.com
 * @date 2021-01-31 17:57:14
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils query(Map<String, Object> params, Integer catelogId);

    AttrGroupEntity selectOne(Long attrGroupId);

    List<AttrEntity> getAttrRelation(String groupId);

    void deleteAttrRelation(List<AttrAttrgroupRelationEntity> entity);

    PageUtils getNoAttrRelation(Map<String, Object> params, Long groupId);

    void saveBatchRelation(List<AttrAttrgroupRelationEntity> attrGroupEntities);

    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrs(String catelogId);
}

